Skip to content

Commit 89c04a9

Browse files
committed
[css-values-4] Remove the older text about contexts; the new stuff is better imo. #11204
1 parent 8e92b41 commit 89c04a9

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

css-values-4/Overview.bs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4340,22 +4340,6 @@ Type Checking</h3>
43404340
and to make division-by-zero detectable at parse time.
43414341
This version now relaxes those restrictions.
43424342

4343-
[=Calculations=] are evaluated in terms of some "context",
4344-
depending on where they are placed,
4345-
which determines how units are resolved,
4346-
how percentages are treated,
4347-
etc.
4348-
By default, this context is defined by the property/descriptor/etc
4349-
that the calculation is being used in.
4350-
Functions can define a different context
4351-
for their contained values.
4352-
(For example, ''media-progress()'' evaluates its [=calculations=]
4353-
in the context of the [=media feature=] it mentions.)
4354-
Directly nested [=math functions=]
4355-
(forming a larger [=calculation tree=])
4356-
always use the context of their top-most [=math function=],
4357-
so the entire [=calculation tree=] is consistent.
4358-
43594343
<div algorithm>
43604344
To <dfn>determine the type of a [=calculation=]</dfn>:
43614345

0 commit comments

Comments
 (0)